#pragma once
	//----------------------------------------------------------------------------


	const int CLIENTMGR												=       0x0001;

	//----------------------------------------------------------------------------
	const int CLIENTLOGON_REQUEST									=       0x0010;
		const int CLIENTLOGON_MODULENAME	=	0;
		const int CLIENTLOGON_MODULETYPE	=	1;
		const int CLIENTLOGON_USERNAME		=	2;
		const int CLIENTLOGON_PASSWORD		=	3;
		const int CLIENTLOGON_REGION		=	4;
	const int CLIENTLOGON_ERROR										=       0x0011;
	const int CLIENTLOGON_SUCC										=       0x0012;
	const int CLIENTLOGOFF_REQUEST									=       0x0020;
	const int CLIENTLOGOFF_ERROR									=       0x0021;
	const int CLIENTLOGOFF_SUCC										=       0x0022;
	//-----------------------------------------------------------------------------

	const int CLIENT_ACTION											=       0x0002;

	//------------------------------------------------------------------------------
	const int CLIENT_FRIENDLIST_REQUEST								=       0x0010;
		const int CLIENTFRIENDLIST_MODULENAME	=	0;
		const int CLIENTFRIENDLIST_MODULETYPE	=	1;
		const int CLIENTFRIENDLIST_USERNAME		=	2;
		const int CLIENTFRIENDLIST_REGION		=	3;

	const int CLIENT_FRIENDLIST_ERROR								=       0x0011;

	const int CLIENT_FRIENDLIST_SUCC								=       0x0012;
		const int CLIENTFRIENDLISTSUCC_MODULENAME  =	0;
		const int CLIENTFRIENDLISTSUCC_MODULETYPE  =	1;
		const int CLIENTFRIENDLISTSUCC_USERNAME    =	2;
		const int CLIENTFRIENDLISTSUCC_REGION      =	3;
		const int CLIENTFRIENDLISTSUCC_FRIENDLIST  =	4;

	const int CLIENT_SERVERSTATUS_REQUEST							=       0x0020;
	const int CLIENT_SERVERSTATUS_ERROR								=       0x0021;
	const int CLIENT_SERVERSTATUS_SUCC								=       0x0022;

	const int CLIENT_SEND_TXTMSG									=		 0x0030;
		const int CLIENT_SEND_TXTMSG_MODULENAME		=	0;
		const int CLIENT_SEND_TXTMSG_MODULETYPE		=	1;
		const int CLIENT_SEND_TXTMSG_USERNAME		=	2;
		const int CLIENT_SEND_TXTMSG_REGION			=	3;
		const int CLIENT_SEND_TXTMSG_TARGET			=	4;
		const int CLIENT_SEND_TXTMSG_MSG			=	5;

	const int CLIENT_SEND_TXTMSG_ERROR								=		 0x0031;
	const int CLIENT_SEND_TXTMSG_SUCC								=		 0x0032;
	const int CLIENT_SEND_TXTMSG_WAIT								=		 0x0033;
	const int CLIENT_SEND_TXTMSG_FINISHED							=		 0x0034;

	//-------------------------------------------------------------------------------

	const int TINYSERVER_ACTION                                       =       0x0003;

	const int TINYSERVER_SEND_TXTMSG									=		 0x0030;
		const int TINYSERVER_SEND_TXTMSG_MODULENAME		=	0;
		const int TINYSERVER_SEND_TXTMSG_MODULETYPE		=	1;
		const int TINYSERVER_SEND_TXTMSG_USERNAME		=	2;
		const int TINYSERVER_SEND_TXTMSG_REGION			=	3;
		const int TINYSERVER_SEND_TXTMSG_TARGET			=	4;
		const int TINYSERVER_SEND_TXTMSG_MSG			=	5;

	const int TINYSERVER_SEND_TXTMSG_ERROR								=		 0x0031;
	const int TINYSERVER_SEND_TXTMSG_SUCC								=		 0x0032;

	const int VOICECARD_ACTION                                       =       0x003;
	const int VOICECARD_ALERT									     =		 0x0010;
		const int VOICECARD_ALERT_MODULENAME   =0;
		const int VOICECARD_ALERT_DEVICEID     =1;
		const int VOICECARD_ALERT_DEVICETYPE   =2;

	const int VOICECARD_REGISTDEVICE								 = 0x0020;
		const int VOICECARD_REGISTDEVICE_MODULENAME  =0;
		const int VOICECARD_REGISTDEVICE_CARDTYPE    =1;
		const int VOICECARD_REGISTDEVICE_CARDSN      =2;
		const int VOICECARD_REGISTDEVICE_CHANNELID   =3;
		const int VOICECARD_REGISTDEVICE_DEVICETYPE  =4;

	const int VOICECARD_REGISTDEVICE_ERROR								 = 0x0021;
		const int VOICECARD_REGISTDEVICE_ERROR_MODULENAME  =0;
		const int VOICECARD_REGISTDEVICE_ERROR_CARDTYPE    =1;
		const int VOICECARD_REGISTDEVICE_ERROR_CARDSN      =2;
		const int VOICECARD_REGISTDEVICE_ERROR_CHANNELID   =3;
		const int VOICECARD_REGISTDEVICE_ERROR_DEVICETYPE  =4;
	    const int VOICECARD_REGISTDEVICE_ERROR_REGDEVICEID = 5;

	const int VOICECARD_REGISTDEVICE_SUCC								 = 0x0022;
		const int VOICECARD_REGISTDEVICE_SUCC_MODULENAME  =0;
		const int VOICECARD_REGISTDEVICE_SUCC_CARDTYPE    =1;
		const int VOICECARD_REGISTDEVICE_SUCC_CARDSN      =2;
		const int VOICECARD_REGISTDEVICE_SUCC_CHANNELID   =3;
		const int VOICECARD_REGISTDEVICE_SUCC_DEVICETYPE  =4;
		const int VOICECARD_REGISTDEVICE_SUCC_REGDEVICEID = 5;

	const int VOICECARD_CONNECTED									 =		0x0030;
		const int VOICECARD_CONNECTED_MODULENAME   =0;
		const int VOICECARD_CONNECTED_DEVICEID     =1;
		const int VOICECARD_CONNECTED_DEVICETYPE   =2;

	const int VOICECARD_PICKUP										 =		0x0040;
		const int VOICECARD_PICKUP_MODULENAME   =0;
		const int VOICECARD_PICKUP_DEVICEID     =1;
		const int VOICECARD_PICKUP_DEVICETYPE   =2;
		